x86-64: don't allow non-canonical addresses to be set for any callback
authorJan Beulich <jbeulich@suse.com>
Mon, 18 Jun 2012 15:02:01 +0000 (17:02 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 18 Jun 2012 15:02:01 +0000 (17:02 +0200)
commit73db9f65daca15a4f052d19738d5a1947cc503bd
treebda3ff3c93359836def879669cfda066d087e043
parent5f4acea2cec04e8e756ad3ab9291df098b4fb550
x86-64: don't allow non-canonical addresses to be set for any callback

Rather than deferring the detection of these to the point where they
get actually used (the fix for XSA-7, 25480:76eaf5966c05, causing a #GP
to be raised by IRET, which invokes the guest's [fragile] fail-safe
callback), don't even allow such to be set.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/domain.c
xen/arch/x86/domctl.c
xen/arch/x86/traps.c